package util;

import entity.FreeTicket;
import entity.StudentTicket;
import entity.Ticket;

public abstract class TicketFactory {
	public static Ticket getTicket(int ticketType){
		switch(ticketType){
		case 1:
			return new Ticket();
		case 2:
			return new StudentTicket();
		case 3:
			return new FreeTicket();
			default:
				return null;
		}
	}
}
